import request from '@/utils/request'

// 查询商户申请结算信息列表
export function listSettle(query) {
  return request({
    url: '/system/settle/list',
    method: 'get',
    params: query
  })
}

export function listBank(query) {
  return request({
    url: "/system/bank/list",
    method: "get",
    params: query,
  });
}

export function settleDetail(query) {
  return request({
    url: "/system/settle/detail",
    method: "get",
    params: query,
  });
}

export function getSettleOrder(id) {
  return request({
    url: "/system/settle/order/" + id,
    method: "get",
  });
}

// 查询商户申请结算信息详细
export function getSettle(id) {
  return request({
    url: '/system/settle/' + id,
    method: 'get'
  })
}

// 新增商户申请结算信息
export function addSettle(data) {
  return request({
    url: '/system/settle',
    method: 'post',
    data: data
  })
}

// 修改商户申请结算信息
export function updateSettle(data) {
  return request({
    url: '/system/settle',
    method: 'put',
    data: data
  })
}

// 删除商户申请结算信息
export function delSettle(id) {
  return request({
    url: '/system/settle/' + id,
    method: 'delete'
  })
}
